#ifndef MAP_HPP
#define MAP_HPP
#include <iostream>
#include <vector>
#include <string>
#include <fstream>
#include <sstream>
#include <SDL/SDL.h>
#include "lyonsSDL.hpp"
#include <stdlib.h>
using namespace std;

class map {
    public:
        vector< vector < int > > cmap;
        vector< SDL_Surface* > textures;
        vector< int > type;

        map();

        void import(string path);
        void importTextures();

        int highestPoint(int x, int y);
        int highestPointRec(int x, int y);

        int lowestPoint(int x, int y);
        int lowestPointRec(int x, int y);

        int rightMostPoint(int x, int y); //To check if you have run into something on your right
        int rightMostPointRec(int x, int y);

        bool occupied(int x, int y);

        void mapOut();
        void draw(SDL_Surface *screen);
    private:
};

#endif // MAP_HPP
